export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/welcome',
    name: '工作台',
    icon: 'HomeOutlined',
    component: './Welcome',
  },
  {
    path: '/admin',
    name: '管理页',
    icon: 'SettingOutlined',
    access: 'canAdmin',
    // component: './Admin/Admin',
    routes: [
      {
        path: '/admin/user-admin',
        name: '用户管理',
        icon: 'smile',
        component: './admin/UserAdmin',
      },
      {
        path: '/admin/post-admin',
        name: '招聘计划管理',
        icon: 'smile',
        component: './admin/PostAdmin',
      },
      {
        path: '/admin/review-admin',
        name: '审核中心',
        icon: 'smile',
        component: './admin/ReviewAdmin',
        routes: [
          {
            path: '/admin/review-admin',
            redirect: '/admin/ReviewAdmin/postReview',
          },
          {
            name: '招聘计划审核',
            icon: 'smile',
            path: '/admin/review-admin/postReview',
            component: './admin/ReviewAdmin/postReview',
          },
          {
            name: '资格审查',
            icon: 'smile',
            path: '/admin/review-admin/qualification',
            component: './admin/ReviewAdmin/qualification',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    name: '人才库管理',
    icon: 'UserDeleteOutlined',
    path: '/talentPool',
    component: './TalentPool',
  },
  // {
  //   name: 'list.table-list',
  //   icon: 'table',
  //   path: '/list',
  //   component: './TableList',
  // },
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    name: '候选人管理',
    icon: 'TeamOutlined',
    path: '/candidate',
    component: './Candidate',
  },
  {
    name: '岗位列表',
    icon: 'ProfileOutlined',
    path: '/post',
    component: './PostList',
  },
  {
    component: './404',
  },
];
